powered by
design_matrix(x)
model.matrix
x1 <- iris[, 5] x <- as.character(x1) a <- design_matrix(x)
Run the code above in your browser using DataLab